package model

type MongoConfig struct {
	Host     string
	Port     int
	User     string
	Password string
}

type RedisConfig struct {
	Host         string
	Password     string
	Port         int
	DB           int
	PoolSize     int
	MinIdleConns int
}

type WeChatConfig struct {
	AppId     string
	AppSecret string
	GrantType string
}

// 提供外部调用数据库的模型结构
type ModelConfig struct {
	MongoConfig  MongoConfig  `json:",optional"`
	RedisConfig  RedisConfig  `json:",optional"`
	WeChatConfig WeChatConfig `json:",optional"`
}
